<template>
	<h1>目前补贴价格{{ $store.state.money }}</h1>
	<Item></Item>
	<Item1></Item1>
	<Item2></Item2>
	<Item3></Item3>
	补贴金额：<input type="number" v-model="money">
	<button @click="chageMoney">提交</button>
</template>

<script>
import Item from './components/Item.vue'
import Item1 from './components/Item1.vue'
import Item2 from './components/Item2.vue'
import Item3 from './components/Item3.vue'
export default {
	name: 'App',
	data(){
		return{
			money:''
		}
	},
	methods:{
		chageMoney(){
			//提交修改
			this.$store.commit("handlerMoney",{
				num:this.money
			});
		}
	},
	components:{
		Item,
		Item1,
		Item2,
		Item3
	}
};
</script>

<style>

</style>
